//===============================================================================
// Microsoft patterns & practices Enterprise Library
// Data Access Application Block
//===============================================================================

using System;

namespace EntLibContrib.Data.MySql
{
    /// <summary>
    /// Extends Exception to be specific to errors that occur in connection
    /// with a connection.
    /// </summary>
    /// 
    /// <author>Wesley Hobbie</author>
    /// <version>1.00</version> 12/30/2005
    public class ConnectionException : SystemException
    {
        /// <summary>
        /// Creates a throwable ConnectionException.
        /// </summary>
        /// <param name="message">A message related to the exception</param>
        public ConnectionException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Creates a throwable ConnectionException.
        /// </summary>
        /// <param name="message">A message related to the exception</param>
        /// <param name="innerException">The inner exception</param>
        public ConnectionException(string message,
                                   Exception innerException)
            : base(message, innerException)
        {
        }
    }
}
